 

<div class="row-fluid">
	
	<div class="span6">
		
		<section class="block">
			
			<br /><br />
			
			<h2 class="block-title">Login Required</h2>
			
			<div class="block-content">
				
				<div id="login_form<?php echo getQuery('popup') ? '_popup' : '' ?>">
					<?php
					if ( empty($model) ) $model = new LoginForm();

					$form=$this->beginWidget('CActiveForm', array(
						'id' => 'login-form',
						'action' => $this->createUrl('/user/login', array('popup' => getQuery('popup'))),
						'enableClientValidation' => false,
						'clientOptions' => array(
							'validateOnSubmit' => true,
						),
						'htmlOptions' => array(
							'class' => 'cm-ajax',
						),
					)); ?>
					<input type="hidden" name="returnUrl" value="<?php echo @$_SERVER['HTTP_REFERER'] ?>" />
					<input type="hidden" name="result_ids" value="login_form<?php echo getQuery('popup') ? '_popup' : '' ?>" />
					<div class="form-field row cm-required">
						<?php // echo $form->labelEx($model,'username'); ?>
						<?php echo $form->textField($model,'username', array('class' => 'input-text', 'placeholder' => $model->getAttributeLabel('username'))); ?>
						<?php echo $form->error($model,'username'); ?>
					</div>

					<div class="form-field row cm-required">
						<?php // echo $form->labelEx($model,'password'); ?>
						<?php echo $form->passwordField($model,'password', array('class' => 'input-text', 'placeholder' => $model->getAttributeLabel('password'))); ?>
						<?php echo $form->error($model,'password'); ?>
					</div>

					<div class="form-field row form-field-inline-label">
						<?php echo $form->checkBox($model,'rememberMe'); ?>
						<?php echo $form->labelEx($model,'rememberMe', array('class' => 'inline-label')); ?>
						<?php echo $form->error($model,'rememberMe'); ?>
					</div>

					<div class="form-field row buttons-container nowrap">
						<div class="row-fluid">
							<div class="span6">
								<?php echo CHtml::submitButton('Login', array('class' => 'button button2 btn-login', 'style' => 'float:left; margin-right: 10px;')); ?>
							</div>
						</div>

						<a class="orange" href="<?php echo $this->createUrl('/user/forgotPassword') ?>"><?php echo t('Forgot Password') ?></a>
						<br /><a class="orange" href="<?php echo $this->createUrl('/user/register') ?>"><?php echo t('Register Account') ?></a>
					</div>

					<?php $this->endWidget(); ?>
				<!--login_form<?php echo getQuery('popup') ? '_popup' : '' ?>--></div>
				
				
			</div>
			
		</section>
		
	</div>
</div>

<br /><br /><br /><br />